package router

import (
	"github.com/GoAdminGroup/go-admin/engine"
	"github.com/beherochuling/beesoft_api/app/admin/internal/controller"
)

func Init(eng *engine.Engine) {
	eng.HTML("GET", "/admin", controller.Dashboard.GetContent)

	// eng.AddGenerator("files", controller.File.GetTable)
	eng.AddGenerator("videos", controller.Video.GetTable)
	eng.AddGenerator("images", controller.Image.GetTable)

	// eng.AddGenerator("channels", tables.GetChannelsTable)
	// eng.AddGenerator("accounts", tables.GetAccountsTable)
	// eng.AddGenerator("apps", tables.GetAppsTable)
	// eng.AddGenerator("buckets", tables.GetBucketsTable)
	// eng.AddGenerator("resources", tables.GetResourcesTable)
}
